From: Lars Ingebrigtsen Date: Fri, 21 Aug 2020 13:36:45 +0000 (+0200) Subject: Fix problem with 8bit content-transfer-encoding in nndoc mbox files X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~28^2~15^2~4522^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5d76288660279c2affa4bed45956efd311eaf53d;p=emacs.git Fix problem with 8bit content-transfer-encoding in nndoc mbox files * lisp/gnus/nndoc.el (nndoc-possibly-change-buffer): If we're reading an mbox file, it may contain messages that use content-transfer-encoding 8bit, which means that we have to treat the file as a sequence of byte (bug#42951). This avoids double-decoding -- once by Emacs when inserting the mbox into the buffer, and once by Gnus when displaying the articles. --- diff --git a/lisp/gnus/nndoc.el b/lisp/gnus/nndoc.el index 79518bb4f81..9d5e3900e8d 100644 --- a/lisp/gnus/nndoc.el +++ b/lisp/gnus/nndoc.el @@ -352,6 +352,7 @@ from the document.") nndoc-group-alist) (setq nndoc-dissection-alist nil) (with-current-buffer nndoc-current-buffer + (set-buffer-multibyte nil) (erase-buffer) (condition-case error (if (and (stringp nndoc-address)